package cn.t222.mapper;

import cn.t222.pojo.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface SysRoleMapper extends AbstractMapper<SysRole, Integer>  {
    List<SysRole> getByUserId(Integer userId);

    int delUserRole(Integer userId);

    int addUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
}
